package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.RdcAligeniusWarehouseReverseEventUpdateResponse;

/**
 * TOP API: taobao.rdc.aligenius.warehouse.reverse.event.update request
 * 
 * @author top auto create
 * @since 1.0, 2019.01.31
 */
public class RdcAligeniusWarehouseReverseEventUpdateRequest extends BaseTaobaoRequest<RdcAligeniusWarehouseReverseEventUpdateResponse> {
	
	

	/** 
	* 参数
	 */
	private String param0;

	public void setParam0(String param0) {
		this.param0 = param0;
	}

	public void setParam0(ReverseEventInfoDto param0) {
		this.param0 = new JSONWriter(false,true).write(param0);
	}

	public String getParam0() {
		return this.param0;
	}

	public String getApiMethodName() {
		return "taobao.rdc.aligenius.warehouse.reverse.event.update";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("param0", this.param0);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<RdcAligeniusWarehouseReverseEventUpdateResponse> getResponseClass() {
		return RdcAligeniusWarehouseReverseEventUpdateResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 参数
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class ReverseEventInfoDto extends TaobaoObject {

	private static final long serialVersionUID = 4572357163763234385L;

	/**
		 * 扩展字段
		 */
		@ApiField("extra")
		private String extra;
		/**
		 * 销退单ID
		 */
		@ApiField("id")
		private String id;
		/**
		 * 备注
		 */
		@ApiField("remark")
		private String remark;
		/**
		 * 类型(1=销退单状态变更)
		 */
		@ApiField("type")
		private Long type;
		/**
		 * 值
		 */
		@ApiField("value")
		private String value;
	

	public String getExtra() {
			return this.extra;
		}
		public void setExtra(String extra) {
			this.extra = extra;
		}
		public String getId() {
			return this.id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getRemark() {
			return this.remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public Long getType() {
			return this.type;
		}
		public void setType(Long type) {
			this.type = type;
		}
		public String getValue() {
			return this.value;
		}
		public void setValue(String value) {
			this.value = value;
		}

}


}